home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: ESC-Key Problem under ncurses!
- Date: Mon, 29 Jan 96 16:22:39 GMT
- Organization: none
- Message-ID: <822932559snz@genesis.demon.co.uk>
- References: <4eijhc$ab2@london.uni-paderborn.de>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4eijhc$ab2@london.uni-paderborn.de>
- gerold@london.uni-paderborn.de "Gerold Polle" writes:
-
- >Hi !
- >
- >When I'm reading the ESC-Key with getch() under ncurses, it will
- >take about 1 second! All other special keys do it immediately. Is
- >there a way to change this delay???
-
- The delay is there as a guard time to ensure the ESC code is not part of
- an escape sequence (e.g. generated by a function or cursor movement key).
- It is the classic problem of overloading a character code. Curses is
- a Unix developed library (although it has been ported to other OSs) so I
- suggest you ask for further information in comp.unix.programmer.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-